/**
 * Linker.java  
 *        
 * Linker is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package linker;

import java.awt.Font;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import linker.gui.LoginWindow;

/**
 * This class is where the main() function is and is the entry of the
 * application.
 */

final class Linker {

	/**
	 * The default blank constructor.
	 */
	private Linker() {
	}

	/**
	 * The main Function, the enter of the program.
	 * 
	 * @param args
	 *            The start args of the program
	 */
	public static void main(final String[] args) {

		// Change look and feel
		try {
			// Get system look and feel
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException e1) {
			e1.printStackTrace();
		} catch (InstantiationException e1) {
			e1.printStackTrace();
		} catch (IllegalAccessException e1) {
			e1.printStackTrace();
		} catch (UnsupportedLookAndFeelException e1) {
			e1.printStackTrace();
		}

		// change login window font... I may use it in each component...
		final int fontSize = 12;
		UIManager.put("Label.font", new Font("Serif", Font.PLAIN, fontSize));

		// Start from LoginWindow.The window for login.
		new LoginWindow();
	}
}
